package com.itstudy.study.student.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itstudy.study.response.R;
import com.itstudy.study.student.entity.Student;
import com.itstudy.study.student.pojo.request.StudentRequest;

import java.util.List;

/**
 * @author chenxiaofan
 */
public interface StudentService extends IService<Student> {

    /**
     * 通过学生编号查找学生
     * @param request
     * @return
     */
    Student getStudentByCode(StudentRequest request);

    /**
     * 获取学生列表
     * @param request
     * @return
     */
    List<Student> list(StudentRequest request);

    /**
     * 分页查询
     * @param request
     * @return
     */
    Page<Student> page(StudentRequest request);

    /**
     * 新增学生
     * @param request
     * @return
     */
    R add(StudentRequest request);
}
